<?php

namespace app\model\basic;

use app\model\TimeModel;

class Parameter extends TimeModel
{
    protected $table = 'sj_parameter';


    public static function getListByType($type = 0)
    {
        $list = (new self)->where('status', '=', 1)->where('type' , $type)
            ->order(['sort' => 'asc', 'create_time' => 'desc'])
            ->select()->toArray();
        return $list;
    }

}